/*
 * @Author: wkwu2
 * @Date: 2020-03-25 15:10:28
 * @LastEditors: wkwu2
 * @LastEditTime: 2020-03-25 16:32:14
 * @Description: 
 */
import React, { Component } from 'react';
import Header from './common/header'
import { Provider } from "react-redux";
import { BrowserRouter, Route } from "react-router-dom"
import store from './store'
import Home from './pages/home'
import Detail from './pages/detail'
class App extends Component {
  render() {
    return (
      <Provider store={store}>
        <Header />
        <BrowserRouter>
          <Route path="/" exact component={Home}></Route>
          <Route path="/detail" exact component={Detail}></Route>
        </BrowserRouter>
      </Provider>
    )
  }
  
}

export default App;
